import request from '@/utils/request'

// 查询接诊记录列表
export function listReceiverecord(query) {
  return request({
    url: '/system/receiverecord/list',
    method: 'get',
    params: query
  })
}

// 查询接诊记录详细
export function getReceiverecord(opdoctorreceiverecordid) {
  return request({
    url: '/system/receiverecord/' + opdoctorreceiverecordid,
    method: 'get'
  })
}

// 新增接诊记录
export function addReceiverecord(data) {
  return request({
    url: '/system/receiverecord',
    method: 'post',
    data: data
  })
}

//诊断
export function zhenduans(data) {
  return request({
    url: '/system/receiverecord/zhenduans',
    method: 'put',
    data: data
  })
}

//检查
export function jiancha(data) {
  return request({
    url: '/system/receiverecord/jiancha',
    method: 'put',
    data: data
  })
}

// 修改接诊记录
export function updateReceiverecord(data) {
  return request({
    url: '/system/receiverecord',
    method: 'put',
    data: data
  })
}

// 删除接诊记录
export function delReceiverecord(opdoctorreceiverecordid) {
  return request({
    url: '/system/receiverecord/' + opdoctorreceiverecordid,
    method: 'delete'
  })
}
// 修改状态
export function editzhenduan(data) {
  return request({
    url: '/system/receiverecord/editzhenduan',
    method: 'put',
    data: data
  })
}
// 导出接诊记录
export function exportReceiverecord(query) {
  return request({
    url: '/system/receiverecord/export',
    method: 'get',
    params: query
  })
}
